package cn.com.infohold.smartcity.jpush;

import android.content.Context;
import android.content.Intent;

/**
 * Created by Mr.Fan on 2017/4/30.
 */

public class JPush {

    public static void bind(Context context, Object userId) {
        Intent intent = new Intent();
        intent.setClass(context, JpushService.class);
        intent.putExtra("userId", String.valueOf(userId));
        context.startService(intent);
    }

    public static void unbind(Context context) {
        bind(context, -1);
    }
}
